home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / cnet / TrdWars23.lha / update.execute < prev   
Text File  |  1993-08-09  |  2KB  |  70 lines

  1. echo ""
  2. echo ""
  3. echo "(*) TradeWars 2.3! (*)"
  4. echo "By Chris Cowan"
  5. echo "(c) 1992,1993 Outlaw Technology"
  6. echo "" 
  7. echo "Updating TradeWars..."
  8. echo ""
  9. if not exists pfiles:
  10.   echo "Please assign the pfiles: directory!"
  11. endif
  12. if exists pfiles:
  13.   if not exists pfiles:tradewars/ports
  14.     echo "Creating pfiles:tradewars/ports directory..."
  15.     makedir "pfiles:tradewars/ports"
  16.   endif
  17.   echo "Copying files..."
  18.   copy tw.uniconvert2.2 pfiles:
  19.   copy TradeWars! pfiles:tradewars
  20.   copy twmain pfiles:tradewars
  21.   copy TwNightlyMaint pfiles:tradewars
  22.   copy text2.3.lha pfiles:tradewars/text
  23.   copy universe2.2.lha pfiles:tradewars/universe
  24.   copy uni_add2.lha pfiles:tradewars/universe
  25.   copy ports2.2.lha pfiles:tradewars/ports
  26.   copy tap.data pfiles:tradewars/universe
  27.   if exists pfiles:TradeWars!
  28.     echo "Deleting pfiles:TradeWars!..."
  29.     delete pfiles:TradeWars!
  30.   endif
  31.   if exists pfiles:tradewars/TwMaint
  32.     echo "Deleting pfiles:tradewars/TwMaint..."
  33.     delete pfiles:tradewars/TwMaint
  34.   endif
  35.   if exists pfiles:tradewars/_scenario1
  36.     echo "Deleting pfiles:tradewars/_scenario1..."
  37.     delete pfiles:tradewars/_scenario1
  38.   endif
  39.   if exists pfiles:tradewars/_scenario2
  40.     echo "Deleting pfiles:tradewars/_scenario2..."
  41.     delete pfiles:tradewars/_scenario2
  42.   endif
  43.   if exists pfiles:tradewars/_title.pic
  44.     echo "Deleting pfiles:tradewars/_title.pic..."
  45.     delete pfiles:tradewars/_title.pic
  46.   endif
  47.   if not exists c:lha
  48.     echo "Missing LHA...cannot break down TradeWars .LHA files!"
  49.   endif
  50.   if exists c:lha
  51.     echo "Unarc'ing text2.3.lha file..."
  52.     cd pfiles:tradewars/text 
  53.     lha -m x text2.3.lha
  54.     cd pfiles:
  55.   endif
  56.   echo ""
  57.   echo "Update complete!"
  58.   echo ""
  59.   echo "Things to Do (if updating from 2.1):"
  60.   echo ""
  61.   echo "    o  Add and run 'tw.uniconvert2.2'"
  62.   echo "           (see 'tw.README!' for details!)"
  63.   echo ""
  64.   echo "    o  Change the path of the game from pfiles:TradeWars! to"
  65.   echo "           pfiles:tradewars/TradeWars!"
  66.   echo ""
  67.   echo "If updating from 2.2, no further changes will be necessary!"
  68.   echo ""
  69.   echo ""
  70. endif